import ECharts from 'vue-echarts'
import 'echarts-liquidfill'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { PieChart, RadarChart, BarChart, GaugeChart,FunnelChart } from 'echarts/charts'
import { GridComponent, TooltipComponent, TitleComponent, LegendComponent, GeoComponent, PolarComponent, ToolboxComponent, VisualMapComponent } from 'echarts/components'
use([
  CanvasRenderer,
  PieChart,
  RadarChart,
  BarChart,
  GaugeChart,
  FunnelChart,
  GridComponent,
  TooltipComponent,
  TitleComponent,
  LegendComponent,
  GeoComponent,
  PolarComponent,
  ToolboxComponent,
  VisualMapComponent
])
export default {
  install(app) {
    app.component('v-chart', ECharts)
  }
}